//
//  AXMyMaterialCheckVC.m
//  AnXin100
//
//  Created by 天质弘耕 on 2018/11/10.
//  Copyright © 2018 tzhg. All rights reserved.
//

#import "AXMyMaterialCheckVC.h"
#import "XFStepView.h"
#import "UIViewController+HBD.h"
#import "ZXCategories.h"
#import "UIView+SDAutoLayout.h"

@interface AXMyMaterialCheckVC ()

@property (nonatomic , strong) XFStepView *stepView2;

@end

@implementation AXMyMaterialCheckVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setupNavigationItems];
    [self creatView];
    [self setlayout];
    self.view.backgroundColor = [UIColor whiteColor];
    
}

- (void)creatView {
    
    _stepView2 = [[XFStepView alloc] initWithFrame:CGRectMake(20, Hn+20, SCREEN_WIDTH - 40, 100) Titles:@[@"提交资料", @"缴纳费用", @"入驻成功"]];
    self.hbd_barTintColor = [UIColor whiteColor];
    self.hbd_barShadowHidden = YES;
    [self.view addSubview:_stepView2];
}

- (void)setlayout {
    
    UIImageView *img = [[UIImageView alloc]init];
    img.image = [UIImage imageNamed:@"zlshz"];
    [self.view addSubview:img];
    
    img.sd_layout
    .centerXEqualToView(self.view)
    .topSpaceToView(_stepView2, 50)
    .widthIs(100)
    .heightIs(100);
    
    UILabel *label = [[UILabel alloc]init];
    label.text = @"资料审核中";
    label.font = FONT_FOURTEEN;
    label.textColor = COLOR_DIV;
    [self.view addSubview:label];
    
    label.sd_layout
    .centerXEqualToView(img)
    .topSpaceToView(img, 20)
    .widthIs(100)
    .heightIs(30);
    
    
    
}

- (void)setupNavigationItems {
    
    /** 导航条左边的按钮 */
    //返回按钮
    UIButton *kfBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [kfBtn setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
    kfBtn.frame = CGRectMake(0, 0, 30, 30);
    [kfBtn addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc]initWithCustomView:kfBtn];
    self.navigationItem.leftBarButtonItem = leftItem;
    /** 搜索 */
    UILabel *titleLabel = [[UILabel alloc]init];
    titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 30)];
    titleLabel.text = @"审核进度";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.font = FONT_EIGHTEEN;
    titleLabel.textColor = [UIColor colorWithHex:0x29b566];
    self.navigationItem.titleView = titleLabel;
    
    
}

#pragma mark - Action

- (void)backAction:(UIBarButtonItem *)item {
    [self.navigationController popViewControllerAnimated:YES];
}


@end
